package sort;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: 杰哥
 * Date: 2020/4/8
 * Time: 17:26
 */
public class Test1 {

    public static void main(String[] args) {
        int arr[] = new int[20000000];
        for (int i = 0; i < 20000000; i++) {
            arr[i] = (int) (Math.random() * 20000000);
        }
        Date date1 = new Date();
//        Arrays.sort(arr);
        Date date2 = new Date();
        System.out.println("用时：" + (date2.getTime() - date1.getTime()) + "毫秒");


    }
}

